package ru.lukyanets.transmission.protocol.model.session;

/**
 * @author slukyanets
 */
public enum ScheduleDay {
    SUN     (1),
    MON     (1 << 1),
    TUES    (1 << 2),
    WED     (1 << 3),
    THURS   (1 << 4),
    FRI     (1 << 5),
    SAT     (1 << 6),
    WEEKDAY (MON.value | TUES.value | WED.value | THURS.value | FRI.value),
    WEEKEND (SUN.value | SAT.value),
    ALL     (WEEKDAY.value | WEEKEND.value);

    private final int value;

    ScheduleDay(int value) {
        this.value = value;
    }

    /** @noinspection unused*/
    public int getValue() {
        return value;
    }
}
